home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 February: Tool Chest / Dev.CD Feb 94.toast / Tool Chest / Development Platforms / MPW Related / MPW Interfaces / PInterfaces / Scrap.p < prev    next >
Encoding:
Text File  |  1993-09-17  |  1.2 KB  |  63 lines  |  [TEXT/MPS ]

  1. {
  2.     File:        Scrap.p
  3.  
  4.     Copyright:    © 1983-1993 by Apple Computer, Inc.
  5.                 All rights reserved.
  6.  
  7.     Version:    System 7.1 for ETO #11
  8.     Created:    Tuesday, March 30, 1993 18:00
  9.  
  10. }
  11.  
  12. {$IFC UNDEFINED UsingIncludes}
  13. {$SETC UsingIncludes := 0}
  14. {$ENDC}
  15.  
  16. {$IFC NOT UsingIncludes}
  17.     UNIT Scrap;
  18.     INTERFACE
  19. {$ENDC}
  20.  
  21. {$IFC UNDEFINED UsingScrap}
  22. {$SETC UsingScrap := 1}
  23.  
  24. {$I+}
  25. {$SETC ScrapIncludes := UsingIncludes}
  26. {$SETC UsingIncludes := 1}
  27. {$IFC UNDEFINED UsingTypes}
  28. {$I $$Shell(PInterfaces)Types.p}
  29. {$ENDC}
  30. {$SETC UsingIncludes := ScrapIncludes}
  31.  
  32. TYPE
  33. PScrapStuff = ^ScrapStuff;
  34. ScrapStuff = RECORD
  35.     scrapSize: LONGINT;
  36.     scrapHandle: Handle;
  37.     scrapCount: INTEGER;
  38.     scrapState: INTEGER;
  39.     scrapName: StringPtr;
  40.     END;
  41.  
  42.  
  43. FUNCTION InfoScrap: PScrapStuff;
  44.     INLINE $A9F9;
  45. FUNCTION UnloadScrap: LONGINT;
  46.     INLINE $A9FA;
  47. FUNCTION LoadScrap: LONGINT;
  48.     INLINE $A9FB;
  49. FUNCTION GetScrap(hDest: Handle;theType: ResType;VAR offset: LONGINT): LONGINT;
  50.     INLINE $A9FD;
  51. FUNCTION ZeroScrap: LONGINT;
  52.     INLINE $A9FC;
  53. FUNCTION PutScrap(length: LONGINT;theType: ResType;source: Ptr): LONGINT;
  54.     INLINE $A9FE;
  55.  
  56.  
  57. {$ENDC}    { UsingScrap }
  58.  
  59. {$IFC NOT UsingIncludes}
  60.     END.
  61. {$ENDC}
  62.  
  63.